package com.shop.service;

import com.shop.entity.User;
import com.shop.exception.DAOException;
import com.shop.exception.UserExistException;
import com.shop.exception.UserNotExistException;

public interface UserService {
    int register(User user) throws DAOException, UserExistException;

    User login(String username, String password) throws UserNotExistException, DAOException;
}
